home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_lag_music_entered.cog < prev    next >
Text File  |  1999-11-15  |  718b  |  53 lines

  1. # Jones 3D Cog Script
  2. #
  3. # lag_music_entered.cog
  4. #
  5. # Cog description
  6. #
  7. # [DS & revised by HB]
  8. #
  9. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  10. #
  11. # ==============================================================================
  12.  
  13. symbols
  14.  
  15.     message        startup
  16.     message        entered
  17.  
  18.     surface    trigger_face
  19.     sector    trigger_sect
  20.     sound        music0
  21.     thing        player                    local
  22.     int        played=0                    local
  23.  
  24. end
  25.  
  26. # ------------------------------------------------------------------------------
  27.  
  28. code
  29.  
  30. startup:
  31.  
  32.     player = GetLocalPlayerThing();
  33.  
  34.     return;
  35.  
  36. entered:
  37.  
  38.     if(played == 1)
  39.     {
  40.         return;
  41.     }
  42.  
  43.     played=1;
  44.     PlaySoundLocal(music0, 1.0, 0.0, 0x0, 0);
  45.  
  46.     return;
  47.  
  48. end
  49.  
  50.  
  51.  
  52.  
  53.